﻿namespace WMS6.Web.OrderDetailMgtServiceRef
{
    using System;
    using System.CodeDom.Compiler;
    using System.ComponentModel;
    using System.Diagnostics;
    using System.Runtime.CompilerServices;
    using System.Runtime.Serialization;

    [Serializable, GeneratedCode("System.Runtime.Serialization", "3.0.0.0"), DebuggerStepThrough, DataContract(Name="SalesOrderDetailInfo", Namespace="http://schemas.datacontract.org/2004/07/WMS6.DataEntity")]
    public class SalesOrderDetailInfo : IExtensibleDataObject, INotifyPropertyChanged
    {
        [OptionalField]
        private DateTime ActualShipDateField;
        [OptionalField]
        private decimal AdjustedQtyField;
        [OptionalField]
        private string AltSkuIDField;
        [OptionalField]
        private string CreatedByField;
        [OptionalField]
        private DateTime CreatedDateField;
        [OptionalField]
        private double ExtendedPriceField;
        [NonSerialized]
        private ExtensionDataObject extensionDataField;
        [OptionalField]
        private string ExternLineIDField;
        [OptionalField]
        private string ExternOrderIDField;
        [OptionalField]
        private int IsSubstituteField;
        [OptionalField]
        private int LineIDField;
        [OptionalField]
        private int OkToSubstituteField;
        [OptionalField]
        private decimal OpenQtyField;
        [OptionalField]
        private string OrderIDField;
        [OptionalField]
        private decimal OriginalQtyField;
        [OptionalField]
        private string OwnerIDField;
        [OptionalField]
        private string PackIDField;
        [OptionalField]
        private double ProductCubeField;
        [OptionalField]
        private double ProductWeightField;
        [OptionalField]
        private decimal QtyField;
        [OptionalField]
        private string RemarkField;
        [OptionalField]
        private int RowIDField;
        [OptionalField]
        private decimal ShippedQtyField;
        [OptionalField]
        private string SkuDescrField;
        [OptionalField]
        private string SkuIDField;
        [OptionalField]
        private string StatusDField;
        [OptionalField]
        private string StatusField;
        [OptionalField]
        private double Tax01Field;
        [OptionalField]
        private double Tax02Field;
        [OptionalField]
        private byte[] TsField;
        [OptionalField]
        private string Udf10Field;
        [OptionalField]
        private string Udf1Field;
        [OptionalField]
        private string Udf2Field;
        [OptionalField]
        private string Udf3Field;
        [OptionalField]
        private string Udf4Field;
        [OptionalField]
        private string Udf5Field;
        [OptionalField]
        private string Udf6Field;
        [OptionalField]
        private string Udf7Field;
        [OptionalField]
        private string Udf8Field;
        [OptionalField]
        private string Udf9Field;
        [OptionalField]
        private double UnitPriceField;
        [OptionalField]
        private string UomDescrField;
        [OptionalField]
        private string UomIDField;
        [OptionalField]
        private string UpdatedByField;
        [OptionalField]
        private DateTime UpdatedDateField;
        [OptionalField]
        private string WhIDField;

        public event PropertyChangedEventHandler PropertyChanged;

        protected void RaisePropertyChanged(string propertyName)
        {
            PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
            if (propertyChanged != null)
            {
                propertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }

        [DataMember]
        public DateTime ActualShipDate
        {
            get
            {
                return this.ActualShipDateField;
            }
            set
            {
                if (!this.ActualShipDateField.Equals(value))
                {
                    this.ActualShipDateField = value;
                    this.RaisePropertyChanged("ActualShipDate");
                }
            }
        }

        [DataMember]
        public decimal AdjustedQty
        {
            get
            {
                return this.AdjustedQtyField;
            }
            set
            {
                if (!this.AdjustedQtyField.Equals(value))
                {
                    this.AdjustedQtyField = value;
                    this.RaisePropertyChanged("AdjustedQty");
                }
            }
        }

        [DataMember]
        public string AltSkuID
        {
            get
            {
                return this.AltSkuIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.AltSkuIDField, value))
                {
                    this.AltSkuIDField = value;
                    this.RaisePropertyChanged("AltSkuID");
                }
            }
        }

        [DataMember]
        public string CreatedBy
        {
            get
            {
                return this.CreatedByField;
            }
            set
            {
                if (!object.ReferenceEquals(this.CreatedByField, value))
                {
                    this.CreatedByField = value;
                    this.RaisePropertyChanged("CreatedBy");
                }
            }
        }

        [DataMember]
        public DateTime CreatedDate
        {
            get
            {
                return this.CreatedDateField;
            }
            set
            {
                if (!this.CreatedDateField.Equals(value))
                {
                    this.CreatedDateField = value;
                    this.RaisePropertyChanged("CreatedDate");
                }
            }
        }

        [DataMember]
        public double ExtendedPrice
        {
            get
            {
                return this.ExtendedPriceField;
            }
            set
            {
                if (!this.ExtendedPriceField.Equals(value))
                {
                    this.ExtendedPriceField = value;
                    this.RaisePropertyChanged("ExtendedPrice");
                }
            }
        }

        [Browsable(false)]
        public ExtensionDataObject ExtensionData
        {
            get
            {
                return this.extensionDataField;
            }
            set
            {
                this.extensionDataField = value;
            }
        }

        [DataMember]
        public string ExternLineID
        {
            get
            {
                return this.ExternLineIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.ExternLineIDField, value))
                {
                    this.ExternLineIDField = value;
                    this.RaisePropertyChanged("ExternLineID");
                }
            }
        }

        [DataMember]
        public string ExternOrderID
        {
            get
            {
                return this.ExternOrderIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.ExternOrderIDField, value))
                {
                    this.ExternOrderIDField = value;
                    this.RaisePropertyChanged("ExternOrderID");
                }
            }
        }

        [DataMember]
        public int IsSubstitute
        {
            get
            {
                return this.IsSubstituteField;
            }
            set
            {
                if (!this.IsSubstituteField.Equals(value))
                {
                    this.IsSubstituteField = value;
                    this.RaisePropertyChanged("IsSubstitute");
                }
            }
        }

        [DataMember]
        public int LineID
        {
            get
            {
                return this.LineIDField;
            }
            set
            {
                if (!this.LineIDField.Equals(value))
                {
                    this.LineIDField = value;
                    this.RaisePropertyChanged("LineID");
                }
            }
        }

        [DataMember]
        public int OkToSubstitute
        {
            get
            {
                return this.OkToSubstituteField;
            }
            set
            {
                if (!this.OkToSubstituteField.Equals(value))
                {
                    this.OkToSubstituteField = value;
                    this.RaisePropertyChanged("OkToSubstitute");
                }
            }
        }

        [DataMember]
        public decimal OpenQty
        {
            get
            {
                return this.OpenQtyField;
            }
            set
            {
                if (!this.OpenQtyField.Equals(value))
                {
                    this.OpenQtyField = value;
                    this.RaisePropertyChanged("OpenQty");
                }
            }
        }

        [DataMember]
        public string OrderID
        {
            get
            {
                return this.OrderIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.OrderIDField, value))
                {
                    this.OrderIDField = value;
                    this.RaisePropertyChanged("OrderID");
                }
            }
        }

        [DataMember]
        public decimal OriginalQty
        {
            get
            {
                return this.OriginalQtyField;
            }
            set
            {
                if (!this.OriginalQtyField.Equals(value))
                {
                    this.OriginalQtyField = value;
                    this.RaisePropertyChanged("OriginalQty");
                }
            }
        }

        [DataMember]
        public string OwnerID
        {
            get
            {
                return this.OwnerIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.OwnerIDField, value))
                {
                    this.OwnerIDField = value;
                    this.RaisePropertyChanged("OwnerID");
                }
            }
        }

        [DataMember]
        public string PackID
        {
            get
            {
                return this.PackIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.PackIDField, value))
                {
                    this.PackIDField = value;
                    this.RaisePropertyChanged("PackID");
                }
            }
        }

        [DataMember]
        public double ProductCube
        {
            get
            {
                return this.ProductCubeField;
            }
            set
            {
                if (!this.ProductCubeField.Equals(value))
                {
                    this.ProductCubeField = value;
                    this.RaisePropertyChanged("ProductCube");
                }
            }
        }

        [DataMember]
        public double ProductWeight
        {
            get
            {
                return this.ProductWeightField;
            }
            set
            {
                if (!this.ProductWeightField.Equals(value))
                {
                    this.ProductWeightField = value;
                    this.RaisePropertyChanged("ProductWeight");
                }
            }
        }

        [DataMember]
        public decimal Qty
        {
            get
            {
                return this.QtyField;
            }
            set
            {
                if (!this.QtyField.Equals(value))
                {
                    this.QtyField = value;
                    this.RaisePropertyChanged("Qty");
                }
            }
        }

        [DataMember]
        public string Remark
        {
            get
            {
                return this.RemarkField;
            }
            set
            {
                if (!object.ReferenceEquals(this.RemarkField, value))
                {
                    this.RemarkField = value;
                    this.RaisePropertyChanged("Remark");
                }
            }
        }

        [DataMember]
        public int RowID
        {
            get
            {
                return this.RowIDField;
            }
            set
            {
                if (!this.RowIDField.Equals(value))
                {
                    this.RowIDField = value;
                    this.RaisePropertyChanged("RowID");
                }
            }
        }

        [DataMember]
        public decimal ShippedQty
        {
            get
            {
                return this.ShippedQtyField;
            }
            set
            {
                if (!this.ShippedQtyField.Equals(value))
                {
                    this.ShippedQtyField = value;
                    this.RaisePropertyChanged("ShippedQty");
                }
            }
        }

        [DataMember]
        public string SkuDescr
        {
            get
            {
                return this.SkuDescrField;
            }
            set
            {
                if (!object.ReferenceEquals(this.SkuDescrField, value))
                {
                    this.SkuDescrField = value;
                    this.RaisePropertyChanged("SkuDescr");
                }
            }
        }

        [DataMember]
        public string SkuID
        {
            get
            {
                return this.SkuIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.SkuIDField, value))
                {
                    this.SkuIDField = value;
                    this.RaisePropertyChanged("SkuID");
                }
            }
        }

        [DataMember]
        public string Status
        {
            get
            {
                return this.StatusField;
            }
            set
            {
                if (!object.ReferenceEquals(this.StatusField, value))
                {
                    this.StatusField = value;
                    this.RaisePropertyChanged("Status");
                }
            }
        }

        [DataMember]
        public string StatusD
        {
            get
            {
                return this.StatusDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.StatusDField, value))
                {
                    this.StatusDField = value;
                    this.RaisePropertyChanged("StatusD");
                }
            }
        }

        [DataMember]
        public double Tax01
        {
            get
            {
                return this.Tax01Field;
            }
            set
            {
                if (!this.Tax01Field.Equals(value))
                {
                    this.Tax01Field = value;
                    this.RaisePropertyChanged("Tax01");
                }
            }
        }

        [DataMember]
        public double Tax02
        {
            get
            {
                return this.Tax02Field;
            }
            set
            {
                if (!this.Tax02Field.Equals(value))
                {
                    this.Tax02Field = value;
                    this.RaisePropertyChanged("Tax02");
                }
            }
        }

        [DataMember]
        public byte[] Ts
        {
            get
            {
                return this.TsField;
            }
            set
            {
                if (!object.ReferenceEquals(this.TsField, value))
                {
                    this.TsField = value;
                    this.RaisePropertyChanged("Ts");
                }
            }
        }

        [DataMember]
        public string Udf1
        {
            get
            {
                return this.Udf1Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.Udf1Field, value))
                {
                    this.Udf1Field = value;
                    this.RaisePropertyChanged("Udf1");
                }
            }
        }

        [DataMember]
        public string Udf10
        {
            get
            {
                return this.Udf10Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.Udf10Field, value))
                {
                    this.Udf10Field = value;
                    this.RaisePropertyChanged("Udf10");
                }
            }
        }

        [DataMember]
        public string Udf2
        {
            get
            {
                return this.Udf2Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.Udf2Field, value))
                {
                    this.Udf2Field = value;
                    this.RaisePropertyChanged("Udf2");
                }
            }
        }

        [DataMember]
        public string Udf3
        {
            get
            {
                return this.Udf3Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.Udf3Field, value))
                {
                    this.Udf3Field = value;
                    this.RaisePropertyChanged("Udf3");
                }
            }
        }

        [DataMember]
        public string Udf4
        {
            get
            {
                return this.Udf4Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.Udf4Field, value))
                {
                    this.Udf4Field = value;
                    this.RaisePropertyChanged("Udf4");
                }
            }
        }

        [DataMember]
        public string Udf5
        {
            get
            {
                return this.Udf5Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.Udf5Field, value))
                {
                    this.Udf5Field = value;
                    this.RaisePropertyChanged("Udf5");
                }
            }
        }

        [DataMember]
        public string Udf6
        {
            get
            {
                return this.Udf6Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.Udf6Field, value))
                {
                    this.Udf6Field = value;
                    this.RaisePropertyChanged("Udf6");
                }
            }
        }

        [DataMember]
        public string Udf7
        {
            get
            {
                return this.Udf7Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.Udf7Field, value))
                {
                    this.Udf7Field = value;
                    this.RaisePropertyChanged("Udf7");
                }
            }
        }

        [DataMember]
        public string Udf8
        {
            get
            {
                return this.Udf8Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.Udf8Field, value))
                {
                    this.Udf8Field = value;
                    this.RaisePropertyChanged("Udf8");
                }
            }
        }

        [DataMember]
        public string Udf9
        {
            get
            {
                return this.Udf9Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.Udf9Field, value))
                {
                    this.Udf9Field = value;
                    this.RaisePropertyChanged("Udf9");
                }
            }
        }

        [DataMember]
        public double UnitPrice
        {
            get
            {
                return this.UnitPriceField;
            }
            set
            {
                if (!this.UnitPriceField.Equals(value))
                {
                    this.UnitPriceField = value;
                    this.RaisePropertyChanged("UnitPrice");
                }
            }
        }

        [DataMember]
        public string UomDescr
        {
            get
            {
                return this.UomDescrField;
            }
            set
            {
                if (!object.ReferenceEquals(this.UomDescrField, value))
                {
                    this.UomDescrField = value;
                    this.RaisePropertyChanged("UomDescr");
                }
            }
        }

        [DataMember]
        public string UomID
        {
            get
            {
                return this.UomIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.UomIDField, value))
                {
                    this.UomIDField = value;
                    this.RaisePropertyChanged("UomID");
                }
            }
        }

        [DataMember]
        public string UpdatedBy
        {
            get
            {
                return this.UpdatedByField;
            }
            set
            {
                if (!object.ReferenceEquals(this.UpdatedByField, value))
                {
                    this.UpdatedByField = value;
                    this.RaisePropertyChanged("UpdatedBy");
                }
            }
        }

        [DataMember]
        public DateTime UpdatedDate
        {
            get
            {
                return this.UpdatedDateField;
            }
            set
            {
                if (!this.UpdatedDateField.Equals(value))
                {
                    this.UpdatedDateField = value;
                    this.RaisePropertyChanged("UpdatedDate");
                }
            }
        }

        [DataMember]
        public string WhID
        {
            get
            {
                return this.WhIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.WhIDField, value))
                {
                    this.WhIDField = value;
                    this.RaisePropertyChanged("WhID");
                }
            }
        }
    }
}

